import { createRouter, createWebHashHistory } from "vue-router";

const routes = [
  {
    path: "/",
    redirect: "/Beat_analysis_MS",
  },
  {
    path: "/index",
    name: "index",
    component: () => import("../views/index/index.vue"),
  },
  {
    path: "/Production_statistics",
    name: "Production_statistics",
    component: () => import("../views/Production_statistics/index.vue"),
  },
  {
    path: "/Production_MS",
    name: "Production_MS",
    component: () => import("../views/Production_MS/index.vue"),
  },
  {
    path: "/Energy_consumption_analysis",
    name: "Energy_consumption_analysis",
    component: () => import("../views/Energy_consumption_analysis/index.vue"),
  },
  {
    path: "/Energy_consumption_analysis_table",
    name: "Energy_consumption_analysis_table",
    component: () => import("../views/Energy_consumption_analysis_table/index.vue"),
  },
  {
    path: "/Beat_analysis",
    name: "Beat_analysis",
    component: () => import("../views/Beat_analysis/index.vue"),
  },
  {
    path: "/Time_slicing",
    name: "Time_slicing",
    component: () => import("../views/Time_slicing/index.vue"),
  },
  {
    path: "/temperature",
    name: "temperature",
    component: () => import("../views/temperature_analysis/index.vue"),
  },
  {
    path: "/andon",
    name: "andon",
    component: () => import("../views/andon/index.vue"),
  },
  {
    path: "/Machine_Fault",
    name: "Machine_Fault",
    component: () => import("../views/Machine_Fault/index.vue"),
  },
  {
    path: "/empty_full",
    name: "empty_full",
    component: () => import("../views/empty_full/index.vue"),
  },
  {
    path: "/Production_total",
    name: "Production_total",
    component: () => import("../views/Production_total/index.vue"),
  },
  {
    path: "/Beat_analysis_MS",
    name: "Beat_analysis_MS",
    component: () => import("../views/Beat_analysis_MS/index.vue"),
  },
  {
    path: "/Beat_MS",
    name: "Beat_MS",
    component: () => import("../views/Beat_MS/index.vue"),
  },
  {
    path: "/tool_change",
    name: "tool_change",
    component: () => import("../views/tool_change/index.vue"),
  },
  {
    path: "/energy_standard",
    name: "energy_standard",
    component: () => import("../views/energy_standard/index.vue"),
  },
  {
    path: "/fault",
    name: "fault",
    component: () => import("../views/fault/index.vue"),
  },
  {
    path: "/energy",
    name: "energy",
    component: () => import("../views/energy/index.vue"),
  },
  {
    path: "/machine",
    name: "machine",
    component: () => import("../views/machine/index.vue"),
  },
]
const router = createRouter({
  history: createWebHashHistory(),
  routes,
});

export default router;
